﻿@using BankApp.Models
@using CommonApp
@using IBS.Model

@model CardModel
@{
    ViewBag.Title = "NewCard";
}

<h2>New Card</h2>

@using (Html.BeginForm("CreateCard", "Clients"))
{
    @Html.HiddenFor(c => c.ClientId)
 
    <table>
        <tr>
            <td>@Html.LabelFor(c => c.CardType)</td>
            <td>@Html.DropDownListFor(c => c.CardType, HtmlHelpers.EnumToSelectList<CardType>())</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(c => c.StartAmount)</td>
            <td>@Html.EditorFor(c => c.StartAmount)</td>
            <td>@Html.ValidationMessageFor(c => c.StartAmount)</td>
        </tr>
    </table>  

    <br/>

    <input type="submit" value="Create Card"/>
}

